package com.linln.component.thymeleaf.utility;

import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 分类显示辅助工具对象
 *
 * @author 小懒虫
 * @date 2018/8/14
 */
public interface PageUtil<T> {


    boolean pageInit(T page, HttpServletRequest request);

    List<String> pageCode(T page);

    String pageActive(T page, String pageCode, String className);

    boolean isPrevious(T page);

    boolean isNext(T page);

    boolean isCode(String pageCode);

    String pageHref(String pageCode);
}
